home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 1
/
Amiga Tools.iso
/
findfile.doc
< prev
next >
Wrap
Text File
|
1994-06-06
|
5KB
|
143 lines
******************************************************************************
* FindFile *
* an AmigaDOS 2.04 Commodity *
* *
* Code Developed & Written By: Russ Steffen *
******************************************************************************
I. Introduction
FindFile is an AmigaDOS 2.04 Commodity modeled after the "Find File"
Desk Accessory on the Macintosh. It will search any AmigaDOS volume for
all files that match a given pattern.
FindFile requires only AmigaDOS 2.04 (V37), and will not work under under
earlier AmigaDOS 2.0 releases, such as 2.02.
II. Supported ToolTypes
As a commodity, FindFile supports all aplicable standard ToolTypes, plus
some custom ToolTypes.
CX_POPUP If YES, FindFile's window will open
at startup.
Default: NO
CX_PRIORITY Sets FindFile's commodity priority.
Default: 0
CX_POPKEY Sets FindFile's hot key. Pressing this key
will either open the window, or bring it to
the front.
Default: "LCommand help"
DEF_PATTERN Sets FindFile's default search pattern.
Default: #? (Matches all files)
CENTERWINDOW Controls FindFile's window behavior when it
is opened.
YES causes the window to be centered on the mouse
every time it is opened.
NO causes the window to be mouse centered only on
the first opening. After that, the window will
remember it's position when it closes, and will
reopen at that position.
Default: YES
IGNOREICONS If YES, FindFile will skip all .info files it encounters.
Default: NO
SORTLIST If YES, the list of files that FindFile finds will
be sorted alphabetically.
INTITIAL_DIR The initial directory to search. Warning: it may be possible
to confuse FindFile by giving it a non-existant directory.
Please note: All tooltypes may be given as either true ToolTypes in FindFile's
icon, or as command line parameters. If given as CLI parameters,
ToolTypes with spaces in them should be enclosed in quotes.
( e.g. "DEF_PATTERN=#? #?" matches any files with a space in the
name. )
III. Window Operation
The FindFile Window contains the following gadgets:
Search Pattern: A string gadget where the AmigaDOS pattern to search is entered.
The default value is controlled by the DEF_PATTERN ToolType.
Keyboard Eqiv: P
Device to Search: A string gadget that specifies the directory to start searching.
Warning: It may be possible to confuse FindFile by giving it
a non-existant directory.
Keyboard Eqiv: D
Directory req: Brings up the ASL file requester to select the search directory.
Looks like a button with a '?' in it.
Keyboard Eqiv: ?
Files Found: A ListView gadget that will contain a list of files found during and
after the actual search, and their complete path.
Keyboard Eqiv: F
Search: This button will initiate a search. The search may be aborted by
the Quit button, described later on.
Keyboard Eqiv: S
Hide: This button will cause FindFile to hide it's window. The window can be
reopened by pressing the program's hot key, wich defaults to Left-Command HELP.
Keyboard Eqiv: H
Quit: This is a dual purpose button. When FindFile is searching for files, this
button will abort the search. Otherwise, this will terminate the program.
IV. COPYRIGHT & DISCLAIMER
This program is copyrighted by the author. Permission is granted for private use.
This program is also freely redistributable, and encouraged, provided that the
following criteria are met. 1) The complete program package must remain intact. The
complete program package consists of (A) The binary executable {FindFile} (B) The
C-Language source code {FindFile.c & .h, FFASLReq.c, FFSearch.c, FFWindow.c CX.c}
(C) This documentation file {FindFile.doc} (D) Any icon { .info } files.
(E) Any Addendums or README type files than may become necessary in future revisions.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the IMPLIED warranty of MERCHANTIBILTY or FITNESS
FOR A PARTICULAR PURPOSE.
The author may not be held responsible by any damage caused by the use or misuse
of this program. This program is distributed as-is, and can not be guaranteed to
work under all conditions & circumstances. Use this program at your own risk.
V. Author's Information
Name: Russell R. Steffen
Home Address: 11551 Sherman Rd.
Cedarburg, WI 53012 (Permanent)
School Address: 318 Callahan Hall
Menomonie, WI 54751 (Valid until May, 1993)
Email: STEFFENR@UWSTOUT.EDU
VI. CREDITS
Thanks to the authors of the Amiga Techincal Reference Series at Commodore. Thanks
also to the author of FracBlank, Olaf 'Olsen' Barthel, who's code showed me how
to center a window on the mouse pointer.
Also, thanks to the members of the Dead Moose Society ( Erik, Emmy, Dick,
Shawn, Sara, Spike & Max ), whose many diversions kept my sanity in check this
summer. ( Beware of lurking rangers, guys! )